package Gui;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

@SuppressWarnings("serial")
public class HintFrame extends JFrame {

	private JPanel contentPane;

	/**
	 * Create the frame.
	 */
	public HintFrame(String hint) {
		setTitle("Wheel Of Fortune");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 511, 375);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);		
		JTextPane txtTitle = new JTextPane();
		txtTitle.setEditable(false);
		txtTitle.setFont(new Font("Tahoma", Font.BOLD, 15));
		txtTitle.setBackground(UIManager.getColor("Button.background"));
		txtTitle.setText("Hint");
		txtTitle.setBounds(63, 30, 97, 20);
		contentPane.add(txtTitle);
		
		JTextArea txtHint = new JTextArea(hint);
		txtHint.setLineWrap(true);
		txtHint.setBackground(Color.LIGHT_GRAY);
		txtHint.setEditable(false);
		txtHint.setBounds(63, 85, 376, 165);
		contentPane.add(txtHint);
	}
}
